package com.hehe.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

//http://localhost:80/test
//http://localhost:80/free
//@Slf4j
//@RestController
//public class TestController {
//    @GetMapping("/sys/menu/nav")
//    public String test() {
//        log.info("------TestController----{}");
//        return "t111111111";
//    }
//    @GetMapping("/cest")
//    public String cest() {
//        return "cest";
//    }
//}
//http://192.168.0.101:8082/sys/menu/nav

@Slf4j
@RestController
@RequestMapping("/sys2") // 添加基础路径
public class TestController {
    @GetMapping("/menu/nav")
    public String test(@RequestParam(name = "t") String t) {
        log.info("------TestController----{}", t);
        return "t";
    }
}
